
    /**  
    * @Title: BaseConditionListener.java
    * @Package com.efast.cafe.portal.service.query.listener
    * @Description: TODO(用一句话描述该文件做什么)
    * @author Administrator
    * @date 2019年1月21日
    * @version V1.0  
    */
    
package com.efast.cafe.portal.service.query.listener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import com.efast.cafe.portal.service.query.defauleValue.BaseConditionValue;


/**
    * @ClassName: BaseConditionListener
    * @Description: TODO(这里用一句话描述这个类的作用)
    * @author Administrator
    * @date 2019年1月21日
    *
    */

public class TemplateQueryListener implements ApplicationListener<ContextRefreshedEvent>{
	public  Logger logger = LoggerFactory.getLogger(getClass());
	private boolean isReady = false;
	
	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		try{
			if(!isReady){
				BaseConditionValue.INSTANCE.init();
				isReady = true;
			}
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
